<?php

class Mediad2_Model_UserGrant extends Mediad2_Model_Abstract
{
	/**
	 * const
	 */
	const STATUS_NO 				= 0;	//无效
	const STATUS_YES				= 1;	//有效
	
	const TYPE_QQ					= 'QQ';		//QQ
	const TYPE_SINA					= 'sina';	//sina
	const TYPE_BAIDU				= 'baidu';	//baidu
	
	/**
	 * var
	 */
	protected $ugid;
	protected $uid;
	protected $type;
	protected $pid;
	protected $token;
	protected $expirytime;
	protected $status;
	protected $addtime;
	
	/**
     * @return the $ugid
     */
    public function getUgid ()
    {
        return $this->ugid;
    }

	/**
     * @return the $uid
     */
    public function getUid ()
    {
        return $this->uid;
    }

	/**
     * @return the $type
     */
    public function getType ()
    {
        return $this->type;
    }

	/**
     * @return the $pid
     */
    public function getPid ()
    {
        return $this->pid;
    }

	/**
     * @return the $token
     */
    public function getToken ()
    {
        return $this->token;
    }

	/**
     * @return the $expirytime
     */
    public function getExpirytime ()
    {
        return $this->expirytime;
    }

	/**
     * @return the $status
     */
    public function getStatus ()
    {
        return $this->status;
    }

	/**
     * @return the $addtime
     */
    public function getAddtime ()
    {
        return $this->addtime;
    }

	/**
     * @param field_type $ugid
     */
    public function setUgid ($ugid)
    {
        $this->ugid = $ugid;
    }

	/**
     * @param field_type $uid
     */
    public function setUid ($uid)
    {
        $this->uid = $uid;
    }

	/**
     * @param field_type $type
     */
    public function setType ($type)
    {
        $this->type = $type;
    }

	/**
     * @param field_type $pid
     */
    public function setPid ($pid)
    {
        $this->pid = $pid;
    }

	/**
     * @param field_type $token
     */
    public function setToken ($token)
    {
        $this->token = $token;
    }

	/**
     * @param field_type $expirytime
     */
    public function setExpirytime ($expirytime)
    {
        $this->expirytime = $expirytime;
    }

	/**
     * @param field_type $status
     */
    public function setStatus ($status)
    {
        $this->status = $status;
    }

	/**
     * @param field_type $addtime
     */
    public function setAddtime ($addtime)
    {
        $this->addtime = $addtime;
    }

	
	

}